package tothreedesignmodel.builder;

/**
 * @Author lzhphantom
 * @Description
 * @Date 创建于 15:51 2020/7/16
 * @Modified
 */
public class XiaoMiBuilder extends Builder {
    private Computer computer = new Computer();

    @Override
    void buildCPU() {
        computer.setCpu(new InterCPU());
    }

    @Override
    void buildMainBoard() {
        computer.setMainBoard(new AMainBoard());

    }

    @Override
    void buildDisPlayer() {
        computer.setDisPalyer(new ADisPlayer());
    }

    @Override
    Computer createComputer() {
        return computer;
    }
}
